/*
 * EulerIntegrator.cpp
 *
 *  Created on: 19/05/2010
 *      Author: jorge
 */

#include "EulerIntegrator.h"
#include "../geometry/Vector3D.h"
namespace physics {

EulerIntegrator::EulerIntegrator(float dt) : Integrator(dt) {
}

EulerIntegrator::~EulerIntegrator() {
}

void EulerIntegrator::integrate(Particle& p) {
	p.addVelocity((dt / p.getMass()) * p.getForce());
	p.addPosition(dt * p.getVelocity());
}

}
